<?php
class StaticsController extends Core_Controller_Action {
//	protected $_style = array ('/styles/static.css' );
	protected $_style = array ('/styles/catalog.css' );
		
	public function indexAction() {
		$page_id = $this->_getParam ( 'id' );
		if (is_null ( $page_id ))
			throw new Exception ( 'Page not found' ); // TODO: 404
		$this->view->page = $this->_api->Static->getOne ( $page_id );
		$this->view->headTitle ()->exchangeArray ( array () );
		$translationHelper = $this->view->getHelper ( 'T' );
		$this->view->headTitle ( $translationHelper->t ( 'Static' ) );
	}
}